/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Network;

import Mobile.Mobile;

/**
 *
 * @author Javinel
 */
public class Runner {
    
    
    public static void main(String [] args){
        Mobile m1=new Mobile(35, 25);
        Mobile m2=new Mobile(35, 25);
        
        Mobile m3=new Mobile(37, 25);
        Mobile m4=new Mobile(39, 25);
        Mobile m5=new Mobile(37, 25);
        Mobile m6=new Mobile(39, 25);
        Mobile m7=new Mobile(37, 25);
        Mobile m8=new Mobile(39, 25);
        Mobile m9=new Mobile(39, 25);
        
        Network n=new Network();
        n.addMobile(m1);
        n.addMobile(m3);
        n.addMobile(m4);
        n.addMobile(m2);
        n.addMobile(m5);
        n.addMobile(m6);
        n.addMobile(m7);
        n.addMobile(m8);
        n.addMobile(m9);
        
        
        m1.startCommunication();
        m2.startCommunication();
        m3.startCommunication();
        m4.startCommunication();
        m5.startCommunication();
        m6.startCommunication();
        m7.startCommunication();
        m8.startCommunication();
        m9.startCommunication();
        
        //System.out.print(m1.getId());
        //System.out.print(m2.getId());
    }
}
